package com.onstar.cn.sqlite.entities;


import com.onstar.cn.sqlite.xutil.db.annotation.Column;
import com.onstar.cn.sqlite.xutil.db.annotation.Id;
import com.onstar.cn.sqlite.xutil.db.annotation.Table;

import java.io.Serializable;

/**
 * @author jun chen
 * @ClassName: UserAddressEntity
 * @date 2016年4月11日 上午10:18:41
 * @Description: 存储用户的家或公司的地址，根据 customCatetory:"1" - 家, "2" - 公司
 */
@Table(name = "t_onstar_user_address_info")
public class UserAddressEntity implements Serializable {

    /**
     * @Fields serialVersionUID : TODO
     */
    private static final long serialVersionUID = 1L;

    public static long getSerialversionuid() {
        return serialVersionUID;
    }

    @Id
    @Column(column = "_id")
    private Integer id;
    @Column(column ="title")
    private String title;//地址名称
    @Column(column ="snippet")
    private String snippet;//地址信息
    @Column(column ="latitude")
    private double latitude;
    @Column(column ="longitude")
    private double longitude;
    @Column(column ="customerCatetory")
    private String customerCatetory;//标记家和公司  "1" - 家, "2" - 公司 customerCatetory
    @Column(column ="poiCityCode")
    private String poiCityCode;//城市code
    @Column(column ="poiPhoneNumber")
    private String poiPhoneNumber;//电话
    @Column(column ="userId")
    private String userId;//userId

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getSnippet() {
        return snippet;
    }

    public void setSnippet(String snippet) {
        this.snippet = snippet;
    }

    public double getLatitude() {
        return latitude;
    }

    public void setLatitude(double latitude) {
        this.latitude = latitude;
    }

    public double getLongitude() {
        return longitude;
    }

    public void setLongitude(double longitude) {
        this.longitude = longitude;
    }

    public String getCustomerCatetory() {
        return customerCatetory;
    }

    public void setCustomerCatetory(String customerCatetory) {
        this.customerCatetory = customerCatetory;
    }

    public String getPoiCityCode() {
        return poiCityCode;
    }

    public void setPoiCityCode(String poiCityCode) {
        this.poiCityCode = poiCityCode;
    }

    public String getPoiPhoneNumber() {
        return poiPhoneNumber;
    }

    public void setPoiPhoneNumber(String poiPhoneNumber) {
        this.poiPhoneNumber = poiPhoneNumber;
    }

    public String getTableName() {
        return "t_onstar_user_address_info";
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }
}
